<!DOCTYPE html>
<!-- saved from url=(0053)https://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th=http://www.thymeleaf.org><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="https://getbootstrap.com/docs/4.0/assets/img/favicons/favicon.ico">

  <title>员工管理</title>

  <link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/dashboard/">

  <!-- Bootstrap core CSS -->
  <link href="./dash_files/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="./dash_files/dashboard.css" rel="stylesheet">
  <style type="text/css">/* Chart.js */
  @-webkit-keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}@keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{-webkit-animation:chartjs-render-animation 0.001s;animation:chartjs-render-animation 0.001s;}</style></head>

<body>
<div th:utext="${msg}"></div>
<div th:replace="~{adminTem::topbar}"></div>

<div class="container-fluid">
  <div class="row">
    <div th:replace="~{adminTem::sidebar(active='list')}"}></div>

    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4"><div class="chartjs-size-monitor" style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: hidden; pointer-events: none; visibility: hidden; z-index: -1;"><div class="chartjs-size-monitor-expand" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="chartjs-size-monitor-shrink" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div></div>
      <h2>商品管理列表</h2>
      <button style="background-color: #1e7e34" class="btn btn-sm btn-primary" onclick="window.location.href='/toAddWatch'">上架商品</button>
      <div class="row">
        <div class="product-layout product-grid col-md-4 col-xs-6 " th:each="item : ${list}">
          <div class="item">
            <div class="product-thumb clearfix mb_30">
              <div class="image product-imageblock"> <a th:onclick="|javascript:cart('${item.getWatch_id()}')|"> <img width="210px" height="252px" th:src="'/watch/'+${item.getImg_href()}" alt="iPod Classic" th:title="${item.getTitle()}" class="img-responsive" /> </a>
              </div>

                <h6 data-name="product_name" class="product-name mt_20"><a th:text="${item.getWatch_name()}"></a></h6>
                <div class="rating"> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i><i class="fa fa-star fa-stack-1x"></i></span> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i><i class="fa fa-star fa-stack-1x"></i></span> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i><i class="fa fa-star fa-stack-1x"></i></span> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i><i class="fa fa-star fa-stack-1x"></i></span> <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i><i class="fa fa-star fa-stack-x"></i></span> </div>
                <span class="price"><span class="amount"><span class="currencySymbol">￥</span><span th:text="${item.getPrice()}"></span></span>
                    </span>
              <div><a class="btn btn-sm btn-primary" th:href="@{'toUpWatch/'+${item.getWatch_id()}}">修改</a>
                <a class="btn btn-sm btn-danger" th:href="@{'/deWatch/'+${item.getWatch_id()}}">删除</a></div>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
</div>



<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./dash_files/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
<script src="./dash_files/popper.min.js"></script>
<script src="./dash_files/bootstrap.min.js"></script>

<!-- Icons -->
<script src="./dash_files/feather.min.js"></script>
<script>
  feather.replace()
</script>

<!-- Graphs -->
<script src="./dash_files/Chart.min.js"></script>


</body></html>